//定义小仓库
import { defineStore } from "pinia";
//引入请求函数
import { reqPay1,reqGetlist } from '../api/pay/pay';
import {ref} from 'vue'

export const  usepayStore = defineStore('pay',()=>{
    let paylb:any=ref([])
    let paypb:any=ref([])
    const getListpay=async()=>{
        let result: any = await reqPay1();
        let navList=result.navList.splice(0,8)
        paylb.value=navList
    }
    const getList1pay=async()=>{
        let result: any = await reqGetlist();
        console.log(result)
        paypb.value=result.result
    }
    return{
        paylb,
        paypb,
        getListpay,
        getList1pay
    }
})
